#ifndef VDIRDATA_H
#define VDIRDATA_H

#include <QString>
#include <QStringList>
#include <QFileInfo>
#include "VFileData.h"

class VDirData
{
public:
    VDirData(QString path);
//    QStringList search(QString name, QString suffixs, char mode);
    QList<QFileInfo> search(VFileData::VHeadFile file, QString suffixs, char mode, bool folder = false);
    void load();
    void reload();

private:
    uint _last_time;
    QStringList _list;
    QString _path;
};

#endif // VDIRDATA_H
